<?php

namespace PackageSpy;

use Nette\Object;
class RoleDomain extends Object{
	private $data;
	function __construct($data) {
		$this->data = $data;
		//print_r("X");
		//print_r($data);
		//print_r("Y");
	}
	
	public function getPackage()
	{
		$result = array();
		foreach ($this->data['package'] as $package)
		{
			array_push($result, new PackageDomain($package));	
		}
		return $result;
	}
	
	public function getRefPackage()
	{
		$result = $this->data['refpackage'];
		return $result;
	}
	
	public function getEmail(){
		return $this->data['email'];
	}
}
